from io import StringIO
from io import BytesIO
# f = StringIO()
# f.write('hello')
# f.write(' ')
# f.write('word')
# print(f.getvalue())

# f = StringIO('htlllo\nhi\nhigoouede')
# while True:
#     s = f.readline()
#     if s == '':
#         break
#     print(s.strip())

f = BytesIO(b'\xe4\xb8\xad\xe6\x96\x87')
# f.write('中文'.encode('utf-8'))
print(f.read())